﻿using System;
using System.Collections.Generic;
using System.Net.Http;

namespace Stee.CAP8.Communication.HttpInterface
{
    /// <summary>
    /// An options class for configuring the default <see cref="IHttpClientFactory"/>.
    /// </summary>
    internal class HttpClientOption
    {
        public HttpClientOption()
        {
            TimeOut = 30;
        }

        /// <summary>
        /// Base address
        /// </summary>
        public string BaseAddress { get; set; }
        /// <summary>
        /// the time of out(second)
        /// </summary>
        public int TimeOut { get; set; }

        /// <summary>
        /// the check type of https cert
        /// </summary>
        public CertCheckType HttpsCertCheck { get; set; }

        /// <summary>
        /// https publisher
        /// </summary>
        public string CertIssuer { get; set; }
    }

    /// <summary>
    /// the check type of https cert
    /// </summary>
    public enum CertCheckType
    {
        NotCheck,
        CheckCertIssuer
    }
}
